/* 通知组件 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    background: #4361ee;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease-out;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.notification-warning {
    background: linear-gradient(135deg, #ff9800, #ef6c00);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 500px;
    max-width: 90%;
    animation: modalShow 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: #fafbfc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    min-width: 80px;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.modal-footer .btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.3);
}

.modal-footer .btn-primary:hover {
    background-color: #3850d0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.4);
}

.modal-footer .btn-secondary {
    background-color: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.modal-footer .btn-secondary:hover {
    background-color: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* 表单组件 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions button:first-child {
    background-color: #4361ee;
    color: white;
    border: none;
}

/* 按钮组件 */
.btn-primary, .btn-secondary, .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary, .primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .primary-btn:hover {
    background-color: #3850d0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary, .secondary-btn {
    background-color: white;
    color: var(--text-secondary);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover, .secondary-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: rgba(67, 97, 238, 0.3);
    transform: translateY(-1px);
}

.secondary-btn {
    background-color: white;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* 加载指示器样式 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
} 